package cn.stylefeng.guns.modular.emergency.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import java.util.Date;

/**
 * 应急预案类型层级封装类
 *
 * @author xbz
 * @date 2023/04/24 14:58
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RelationLevelRequest extends BaseRequest {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键")
    private Long id;

    /**
     * 数据id
     */
    @ChineseDescription("数据id")
    private Long dataId;

    @ChineseDescription("数据名称")
    private String categoryName;

    /**
     * 0：否  1：是
     */
    @ChineseDescription("0：否  1：是")
    private Integer rootStatus;

    /**
     * 直接父类型id
     */
    @ChineseDescription("直接父类型id")
    private Long directParentTypeId;

    /**
     * 父辈类型id
     */
    @ChineseDescription("父辈类型id")
    private Long parentsTypeId;

    /**
     * 层级
     */
    @ChineseDescription("层级")
    private Integer level;

    /**
     * 删除标记：Y-已删除，N-未删除
     */
    @NotBlank(message = "删除标记：Y-已删除，N-未删除不能为空", groups = {add.class, edit.class})
    @ChineseDescription("删除标记：Y-已删除，N-未删除")
    private String delFlag;

    /**
     * 表名
     */
    @ChineseDescription("表名")
    private String tableName;

}
